 jappnames=(IndexMain FileDataMain ChecksumMain BusinessMain)
 for jappname  in ${aa[*]}
   do
 javaps=`jps`
 i=0
 psid=0
 for psresult in $javaps
 do
   let cur=i%2
   if [ $cur -eq 0 ]; then
     psid=$psresult
   else
     if (test "$psresult" = "$jappname")
     then
         echo "software"$jappname"[pid="$psid"]stared!"
  #       exit 0
     fi
   fi
   let i++;
 done
done
 # import class path CLASSPATH='source file'
 export CLASSPATH=bin
 pathtmp=''
 for jarpath in `ls lib/*.jar`
 do
    CLASSPATH=$CLASSPATH:$jarpath
 done
 export CLASSPATH=$CLASSPATH
java  -Xms1g -Xmx1g -server com.flute.framework.IndexMain songMysqlIndex &
java  -Xms512m -Xmx512m -server com.flute.framework.IndexMain singerMysqlIndex &
java  -Xms256m -Xmx256m -server com.flute.framework.IndexMain albumMysqlIndex &
java  -Xms1g -Xmx1g -server com.flute.framework.IndexMain lyricMysqlIndex &
java  -Xms1g -Xmx1g -server com.flute.framework.IndexMain newsMysqlIndex &
#java  -Xms512m -Xmx1g -server com.flute.framework.BusinessMain downloadBusinessHandler &
#java  -Xms512m -Xmx1g -server com.flute.framework.BusinessMain listeningBusinessHandler &
java  -Xms256m -Xmx256m -server com.flute.framework.FileDataMain songFileDataPreparer &
java  -Xms256m -Xmx256m -server com.flute.framework.FileDataMain singerFileDataPreparer &
java  -Xms256m -Xmx256m -server com.flute.framework.FileDataMain albumFileDataPreparer &
java  -Xms256m -Xmx256m -server com.flute.framework.FileDataMain lyricFileDataPreparer &
java  -Xms100m -Xmx100m -server com.flute.framework.ChecksumMain &
java  -Xms512m -Xmx1024m  -server com.flute.apps.business.BusinessMain &  